package com.tourism.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/**
 * @Description 订单支付信息(酒店和景点)
 * @Author z
 * @Date 2021-04-28 22:28
 */
@Data
public class OrderPayInfo {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;


    /**
     * 是否支付：true已支付 false未支付
     */
    private boolean pay;
    /**
     * 支付方式
     */
    private String payWay;
    /**
     * 支付时间
     */
    private Date payTime;


    public void init(){
        pay = true;
        payTime = new Date();
    }
}
